﻿@page "/components/swipearea"
@page "/components/MudSwipeArea"

<DocsPage>
    <DocsPageHeader Title="Swipe Area" Component="@nameof(MudSwipeArea)">
        <Description>Note: these examples only work on devices where touch events are supported.</Description>
    </DocsPageHeader>
    <DocsPageContent>

        <DocsPageSection>
            <SectionHeader Title="Swipe directions">
                <Description>Swipe your finger in different directions to see how the component works.</Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" Code="@nameof(SwipeDirectionsExample)">
                <SwipeDirectionsExample />
            </SectionContent>
        </DocsPageSection>
        
        <DocsPageSection>
            <SectionHeader Title="Prevent default browser behavior">
                <Description>Browser will not scroll when <CodeInline>PreventDefault</CodeInline> is set to <CodeInline>true</CodeInline>.</Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" Code="@nameof(SwipeDirectionsPreventDefaultExample)">
                <SwipeDirectionsPreventDefaultExample />
            </SectionContent>
        </DocsPageSection>

        <DocsPageSection>
            <SectionHeader Title="Drawer Example">
                <Description></Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" Code="@nameof(SwipeDrawerExample)" ShowCode="false">
                <SwipeDrawerExample />
            </SectionContent>
        </DocsPageSection>

        <DocsPageSection>
            <SectionHeader Title="DatePicker Example">
                <Description></Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" Code="@nameof(SwipeDatePickerExample)" ShowCode="false">
                <SwipeDatePickerExample />
            </SectionContent>
        </DocsPageSection>

    </DocsPageContent>
</DocsPage>
